<?php 
/*------------------------------------------------------------------------
# company - company management 
# @author    pipapai.com
-------------------------------------------------------------------------*/

defined('_JEXEC') or die;
// disable core styles to avoid bs conflict 
OC_Util::$core_styles = array();

if(isDevMode()) {
   OCP\Util::addStyle('jobseeker', 'jobseeker');
   OCP\Util::addScript('jobseeker', 'login');
} else {
   OCP\Util::addStyle('static', 'jobseeker');
   OCP\Util::addScript('static', 'apps/jobseeker.login.min');
}

?>
<script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('jobseeker/js', 'jobseeker.php'));?>"></script>
<div id="vloginform" class="userdata">

<form action="<?php echo OC_Helper::linkToRoute("jobseeker_postlogin");?>" method="post" id="jobseekerloginform" style="margin:0px;">
<?php if (!empty($pretext )): ?>
   <div style='font-weight:bold;text-align:center;padding: 5px'><?=$pretext?></div>
<?php endif; ?>

   <div class="row-fluid oneconn_margin">
      <div class="span2 visible-desktop">&nbsp;</div>
      <div class="span8 oneconn_box">
         <div class="lgrg_title clearfix"><span class="pull-left">用户登录</span><span class="pull-right"><em class="redstar">*</em><span class="medium">表示必须填写</span></span></div>
         
         <div class="lgrg_form">
                  <div class="form-horizontal">
                  
                     <div class="control-group input_login">
                        <label class="control-label key"><span class="required">*</span>电子邮箱</label>
                        <div class="controls">
                           <i class="icon-envelope"></i>
                           <input name="username" class="email yahei input-large" type="text" name="username" value=""/>
                        </div>
                     </div>
                     <div class="control-group input_login">
                        <label class="control-label key"><span class="required">*</span>密码</label>
                        <div class="controls">
                           <i class="icon-lock"></i>
                           <input name="password" class="yahei input-large" type="password"/>
                        </div>
                     </div>
                     <?php if(!isDevMode()):
                     $app = PFactory::getApplication();
                     $needcaptcha = $app->getUserState("login_failed_captcha", false);
                     echo '
                           <div class="control-group" id="logincaptcha" style="display:' . ($needcaptcha ? "" : "none")  . '">
                              <label class="control-label key"><span class="required">*</span>安全码</label>
                              <div class="controls">
                                 <input type="text" class="input-medium" placeholder="请填写下图中字符" id="captcha_code" name="captcha_code" maxlength="6" autocomplete="off" ' . (!$needcaptcha ? 'disabled="disabled"':'') . '/>
                                 <span class="help-inline medium notpasschecked" for="captcha_code"></span>
                                 <div style="margin-top:5px;">
                                    <img style="width:164px;display:none;" id="captcha" class="captchaimg" src="/images/blank.png" alt="请输入图中数字和字符"/><span class="help-inline medium"><a href="#" id="captcha_reload" title="如果安全码不清楚，点击一下更新">换一换</a></span>
                                 </div>
                               </div>
                            </div>
                           ';
                     endif; ?>
                     <div class="control-group login_action">
                        <div class="controls">
                           <label class="checkbox medium pull-left">
                              <input name="remember_login" id="mod_login_remember" type="checkbox" value="yes"/>记住我
                           </label>
                           <a href="<?php echo OC_Helper::linkToRoute("jobseeker_lostpassword");?>" class="pull-left medium marginleft">忘记密码</a>
                        </div>
                     </div>
                     <div class="login_action clearfix">
                        <div class="controls">
                           <input type="submit" value="登 录" class="btn btn-info pull-left" name="Submit"/>
                        </div>
                     </div>
                     <div class="control-group clearfix">
                        <div class="controls">
                           <div id='regmsg' class='error' style='margin:10px 0 10px 0; font-size:12px;  display:none'></div>
                        </div>
                     </div>              
                    
                  </div>                     
         </div>
      </div>
      <div class="span2 visible-desktop">&nbsp;</div>
   </div>
	<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
	<input type="hidden" name="return" value="<?php echo $_['return'] ?>" id="return">

</form>
</div>
